

// Copyright (c) 22-Nov-06 - 2008 Motorola, Inc. All rights reserved.


#ifndef _TAPI_RESULT_H
#define _TAPI_RESULT_H

#ifdef __cplusplus 
extern "C" {
#endif

typedef enum    _TAPI_RESULT_E
{
    TAPI_RESULT_SUCC             = 0,    

    TAPI_RESULT_FAIL,
    TAPI_RESULT_ERROR,                   
    TAPI_RESULT_TIMEOUT,                 
    TAPI_RESULT_PARAM_ERROR,
    TAPI_RESULT_SEND_MSG_ERROR,
    TAPI_RESULT_SEND_PRIM_ERROR,         
    TAPI_RESULT_RECEIVE_MSG_ERROR,
    TAPI_RESULT_INVALID_PRIM,
    TAPI_RESULT_INVALID_MSG,
    TAPI_RESULT_NO_MEMORY,               
    TAPI_RESULT_SLOT_NOT_EXIST,

    TAPI_RESULT_ASYNC_MSGID_NOT_IN_ORDER,
    TAPI_RESULT_PEER_CLOSE,
    TAPI_RESULT_FD_NOT_READY,
    TAPI_RESULT_INVALID_FD,
    TAPI_RESULT_ONEINSTANCEMSG_REG_DENY,
    TAPI_RESULT_ONEINSTANCEMSG_REG_GROUP_ONLY,

    TAPI_RESULT_ASYNC_DUP_INIT_NOT_ALLOWED,
    TAPI_RESULT_SYNC_DUP_INIT_NOT_ALLOWED,

    TAPI_RESULT_MSG_LENGTH_ERROR,

    TAPI_RESULT_BUFFER_NOT_ENOUGH,

    TAPI_RESULT_SIM_REFRESHING,         
    TAPI_RESULT_FEATURE_UNSUPPORT,      
    TAPI_RESULT_CALL_FAILED    = 300,   
    TAPI_RESULT_CALL_PHONENUMBER_EMPTY, 
    TAPI_RESULT_CALL_NO_ACTIVE_CALL,    
    TAPI_RESULT_CALL_INVALID_CALL_ID,   
    TAPI_RESULT_CALL_STATUS_ERROR,      
    TAPI_RESULT_CALL_FIXED_DIALING,     

    TAPI_RESULT_CALL_CSD_EXIST,         

    TAPI_RESULT_CALL_GPRS_EXIST,
    TAPI_RESULT_CALL_VOICECALL_EXIST,   
    TAPI_RESULT_CALL_INVALID_FD,        
    TAPI_RESULT_CALL_FAX_EXIST,
    TAPI_RESULT_CALL_NO_IDLE_CHANNEL,
    TAPI_RESULT_CALL_INVALID_PHONE_NUMBER,  
    TAPI_RESULT_CALL_FORWARD_ALL_CONDITIONAL_DESTIN_NOT_SAME,   

    TAPI_RESULT_TTY_NOT_PERMIT_CHANGE_MODE, 
    TAPI_RESULT_BATTERY_NOT_ENOUGH_OPEN_RF, 
    TAPI_RESULT_CALL_INVALID_CALL_TYPE,     
    TAPI_RESULT_CALL_NOT_ALLOW_IN_GSM,      
    TAPI_RESULT_CALL_NOT_ALLOW_IN_UMTS,     
    TAPI_RESULT_CALL_RESOURCE_UNAVAILABLE,      
    TAPI_RESULT_CALL_EMPTY_DTMF_STRING,     
    TAPI_RESULT_CALL_INVALID_DTMF_STRING,   

    TAPI_RESULT_CB_BASE                     = 500,
    TAPI_RESULT_CB_PAGE_EXCEED_MAX_VALUE    = TAPI_RESULT_CB_BASE,  

    TAPI_RESULT_CB_INVALID_CHANNEL_VALUE,     
    TAPI_RESULT_CB_INVALID_CHANNEL_INDEX,     
    TAPI_RESULT_CB_DUPLICATE_CHANNEL,	       
    TAPI_RESULT_CB_INVALID_LANGUAGE_VALUE,    
    TAPI_RESULT_CB_DCS_NOT_SUPPORTED,         
    TAPI_RESULT_CB_PAGE_REPEATED,             
    TAPI_RESULT_CB_WAIT_NEXT_PAGE,            

    TAPI_RESULT_CB_EXCEED_MAX_JAVA_CHANNEL_VALUE,   

    TAPI_RESULT_CB_EXCEED_MAX_CHANNEL_VALUE,        

    TAPI_RESULT_MAILBOX_TYPE_ERROR          = 600,

    TAPI_RESULT_SMS_BASE                    = 800,
    TAPI_RESULT_SMS_NOT_ALLOWED,
    TAPI_RESULT_SMS_BUSY,
    TAPI_RESULT_SMS_UDHL_LARGER_THAN_UDL,
    TAPI_RESULT_SMS_USER_DATA_ERROR,
    TAPI_RESULT_SMS_SC_ADDR_ERROR,
    TAPI_RESULT_SMS_TP_ADDR_ERROR,
    TAPI_RESULT_SMS_INVALID_PDU,
    TAPI_RESULT_SMS_ACK_ERROR,
    TAPI_RESULT_SMS_ALREADY_ACKED,
    TAPI_RESULT_SMS_PORTNUMBER_REGISTERED_BEFORE,
    TAPI_RESULT_SMS_PORTNUMBER_REGISTERED_BY_OTHER,
    TAPI_RESULT_SMS_PORTNUMBER_NOT_REGISTERED,
    TAPI_RESULT_SMS_KEYWORD_REGISTERED_BEFORE,
    TAPI_RESULT_SMS_KEYWORD_REGISTERED_BY_OTHER,
    TAPI_RESULT_SMS_KEYWORD_NOT_REGISTERED,
    TAPI_REUSLT_SMS_SIM_INDEX_INVALID,
    TAPI_RESULT_SMS_MESSAGE_SIZE_OVERFLOW,      
    TAPI_RESULT_SIZE_EXCEED,
    TAPI_REUSLT_SMS_SIM_FULL,                   

    TAPI_RESULT_PB_BASE                    = 1000,
    TAPI_RESULT_PB_OCCUPIED                = TAPI_RESULT_PB_BASE,  
    TAPI_RESULT_PB_RELEASE,
    TAPI_RESULT_PB_FAIL,                   
    TAPI_RESULT_PB_FULL,                   
    TAPI_RESULT_PB_EMPTY,                  
    TAPI_RESULT_PB_STRING_LONG,
    TAPI_RESULT_PB_STRING_ERR,

    TAPI_RESULT_CPHS_VM_HOTKEYS_NOT_ALLOWED,
    TAPI_RESULT_CPHS_VM_NUMBER_READ_FAILED,
    TAPI_RESULT_CPHS_VM_CENTER_CALL_FAILED,

    TAPI_RESULT_BP_BASE                   = 0x8000,
    TAPI_RESULT_BP_PHONE_FAILURE          = TAPI_RESULT_BP_BASE,      
    TAPI_RESULT_BP_NO_CONNECTION_TO_PHONE,        
    TAPI_RESULT_BP_PHONE_ADAPTOR_LINK_RESERVED,   
    TAPI_RESULT_BP_OPERATION_NOT_ALLOWED,         
    TAPI_RESULT_BP_OPERATION_NOT_SUPPORTED,       
    TAPI_RESULT_BP_PH_SIM_PIN_REQUIRED,           
    TAPI_RESULT_BP_PH_FSIM_PIN_REQUIRED,          
    TAPI_RESULT_BP_PH_FSIM_PUK_REQUIRED,          
    TAPI_RESULT_BP_SIM_NOT_INSERTED       = TAPI_RESULT_BP_BASE + 10, 
    TAPI_RESULT_BP_SIM_PIN_REQUIRED,              
    TAPI_RESULT_BP_SIM_PUK_REQUIRED,              
    TAPI_RESULT_BP_SIM_FAILURE,                   
    TAPI_RESULT_BP_SIM_BUSY,                      
    TAPI_RESULT_BP_SIM_WRONG,                     
    TAPI_RESULT_BP_INCORRECT_PASSWORD,            
    TAPI_RESULT_BP_SIM_PIN2_REQUIRED,             
    TAPI_RESULT_BP_SIM_PUK2_REQUIRED,             
    TAPI_RESULT_BP_MEMORY_FULL            = TAPI_RESULT_BP_BASE + 20, 
    TAPI_RESULT_BP_INVALID_INDEX,                 
    TAPI_RESULT_BP_NOT_FOUND,                     
    TAPI_RESULT_BP_MEMORY_FAILURE,                 		
    TAPI_RESULT_BP_TEXT_STRING_TOO_LONG,          
    TAPI_RESULT_BP_INVALID_CHARACTER_IN_TEXT_STRING, 
    TAPI_RESULT_BP_DIAL_STRING_TOO_LONG,          
    TAPI_RESULT_BP_INVALID_CHARACTER_IN_DIAL_STRING, 
    TAPI_RESULT_BP_EXT_FULL,                      
    TAPI_RESULT_BP_NO_NETWORK_SERVICE     = TAPI_RESULT_BP_BASE + 30, 
    TAPI_RESULT_BP_NETWORK_TIMEOUT,               
    TAPI_RESULT_BP_NETWORK_NOT_ALLOWED,           
    TAPI_RESULT_BP_AIRPLANE_MODE_ENABLED,         
    TAPI_RESULT_BP_NETWORK_PERSONALISATION_PIN_REQUIRED  = TAPI_RESULT_BP_BASE + 40, 

    TAPI_RESULT_BP_NETWORK_PERSONALISATION_PUK_REQUIRED, 

    TAPI_RESULT_BP_NETWORK_SUBSET_PERSONALISATION_PIN_REQUIRED, 

    TAPI_RESULT_BP_NETWORK_SUBSET_PERAONALISATION_PUK_REQUIRED, 

    TAPI_RESULT_BP_SERVICE_PROVIDER_PERSONALISATION_PIN_REQUIRED, 

    TAPI_RESULT_BP_SERVICE_PROVIDER_PERSONALISATION_PUK_REQUIRED, 

    TAPI_RESULT_BP_CORPORATE_PERSONALISATION_PIN_REQUIRED,        

    TAPI_RESULT_BP_CORPORATE_PERSONALISATION_PUK_REQUIRED,        

    TAPI_RESULT_BP_PIN_PERMANENT_BLOCKED,          
    TAPI_RESULT_BP_PIN_BAD_CODE_ONE_TRY_LEFT,      

   TAPI_RESULT_BP_PIN_ENABLE             = TAPI_RESULT_BP_BASE + 50, 

    TAPI_RESULT_BP_PIN_DISABLED,                  

    TAPI_RESULT_BP_CALL_BAR_NOT_AVAILABLE,        
    TAPI_RESULT_BP_NETWORK_ACCESS_FAILURE,        
    TAPI_RESULT_BP_PASSWORD_VIOLATION,            
    TAPI_RESULT_BP_NETWORK_BUSY_FOR_CALLBAR,      
    TAPI_RESULT_BP_CALL_BARRED_FOR_CALLBAR,       
    TAPI_RESULT_BP_CSD_NOT_SUPPORT_IN_UMA_PREFERRED_MODE,  

    TAPI_RESULT_BP_UNKNOWN               = TAPI_RESULT_BP_BASE + 100,
    TAPI_RESULT_BP_ILLEGAL_MS            = TAPI_RESULT_BP_BASE + 103,
    TAPI_RESULT_BP_ILLEGAL_ME            = TAPI_RESULT_BP_BASE + 106,
    TAPI_RESULT_BP_GPRS_SERVICE_NOT_ALLOWED,      
    TAPI_RESULT_BP_PLMN_NOT_ALLOWED      = TAPI_RESULT_BP_BASE + 111,

    TAPI_RESULT_BP_LOCATION_AREA_NOT_ALLOWED,     
    TAPI_RESULT_BP_ROAMING_NOT_ALLOWED_IN_THIS_LOCATION,

    TAPI_RESULT_BP_SERVICE_OPTION_NOT_SUPPORTED   = TAPI_RESULT_BP_BASE + 132,

    TAPI_RESULT_BP_REQUESTED_SERVICE_OPTION_NOT_SUBSCRIBED,                                 

    TAPI_RESULT_BP_SERVICE_OPTION_TEMP_OUT_OF_ORDER,                                       

    TAPI_RESULT_BP_UNSPECIFIED_GPRS_ERROR         = TAPI_RESULT_BP_BASE + 148,

    TAPI_RESULT_BP_PDP_AUTHENTICATION_FAILURE,   
    TAPI_RESULT_BP_INVALID_MOBILE_CLASS,         
    TAPI_RESULT_BP_TOO_MANY_ACTIVE_CALLS          = TAPI_RESULT_BP_BASE + 256,

    TAPI_RESULT_BP_CALL_REJECTED,               
    TAPI_RESULT_BP_UNANSWERED_CALL_PENDING,     
    TAPI_RESULT_BP_UNKNOWN_CALLING_ERROR,       
    TAPI_RESULT_BP_NO_PHONE_NUM_RECOGNIZED        = TAPI_RESULT_BP_BASE + 260,

    TAPI_RESULT_BP_CALL_STATE_NOT_IDLE,         
    TAPI_RESULT_BP_CALL_IN_PROGRESS,            
    TAPI_RESULT_BP_DIAL_STATE_ERROR,            
    TAPI_RESULT_BP_UNBLOCK_CODE_REQUIRED,       
    TAPI_RESULT_BP_NETWORK_BUSY,                
    TAPI_RESULT_BP_INVALID_PHONE_NUMBER,        
    TAPI_RESULT_BP_NUMBER_ENTRY_ALREADY_STARTED,    
    TAPI_RESULT_BP_CANCELLED_BY_USER,           
    TAPI_RESULT_BP_NUMBER_ENTRY_COULD_NOT_START,
    TAPI_RESULT_CMS_BASE                          = TAPI_RESULT_BP_BASE + 300,
    TAPI_RESULT_CMS_ME_FAILURE                    = TAPI_RESULT_CMS_BASE,        
    TAPI_RESULT_CMS_SMS_SERVICE_OF_ME_RESERVED,    	
    TAPI_RESULT_CMS_OPERATION_NOT_ALLOWED,      	
    TAPI_RESULT_CMS_OPERATION_NOT_SUPPORTED,    		
    TAPI_RESULT_CMS_INVALID_PDU_MODE_PARAMETER, 	
    TAPI_RESULT_CMS_INVALID_TEXT_MODE_PARAMETER,   	
    TAPI_RESULT_CMS_SIM_NOT_INSERTED              = TAPI_RESULT_CMS_BASE + 10,                                                                      
    TAPI_RESULT_CMS_SIM_PIN_REQUIRED,           		
    TAPI_RESULT_CMS_PH_SIM_PIN_REQUIRED,        		
    TAPI_RESULT_CMS_SIM_FAILURE,                		
    TAPI_RESULT_CMS_SIM_BUSY,                   			
    TAPI_RESULT_CMS_SIM_WRONG,                  			
    TAPI_RESULT_CMS_SIM_PUK_REQUIRED,           		
    TAPI_RESULT_CMS_SIM_PIN2_REQUIRED,          		
    TAPI_RESULT_CMS_SIM_PUK2_REQUIRED,          		
    TAPI_RESULT_CMS_MEMORY_FAILURE                = TAPI_RESULT_CMS_BASE + 20,   

    TAPI_RESULT_CMS_INVALID_MEMORY_INDEX,       		
    TAPI_RESULT_CMS_MEMORY_FULL,                			
    TAPI_RESULT_CMS_SMSC_ADDRESS_UNKNOWN          = TAPI_RESULT_CMS_BASE + 30,   

    TAPI_RESULT_CMS_NO_NETWORK_SERVICE,         	
    TAPI_RESULT_CMS_NETWORK_TIMEOUT,            		
    TAPI_RESULT_CMS_NO_CNMA_EXPECTED_EV           = TAPI_RESULT_CMS_BASE + 40,   

    TAPI_RESULT_CMS_NO_ENMA_EXPECTED_EV,        
    TAPI_RESULT_CMS_UNKNOWN_ERROR                 = TAPI_RESULT_CMS_BASE + 200,  

    TAPI_RESULT_CMS_NETWORK_BUSY                  = TAPI_RESULT_CMS_BASE + 212,  

    TAPI_RESULT_CMS_INVALID_DESTINATION_ADDRESS,  
    TAPI_RESULT_CMS_INVALID_MESSAGE_BODY_LENGTH,  
    TAPI_RESULT_CMS_PHONE_IS_NOT_IN_SERVICE,      
    TAPI_RESULT_CMS_INVALID_PREFERRED_MEMORY_STORAGE,  
    TAPI_RESULT_CMS_USER_TERMINATED,             
    TAPI_RESULT_BP_INCORRECT_UPIN_PASSWORD ,     
    TAPI_RESULT_BP_UPIN_DISABLE ,                
    TAPI_RESULT_BP_SIM_UPIN_PUK_REQUIRED ,       
    TAPI_RESULT_BP_UPIN_PERM_BLOCKED,            
    TAPI_RESULT_OPERATION_NOT_ALLOWED            

} TAPI_RESULT_E;

#ifdef __cplusplus
}
#endif 

#endif  

